#coding:utf-8

def toStr(num, base):
    convertString = "0123456789ABCDEF"

    if num < base:
        return convertString[num]
    else:
        return toStr(num//base, base) + convertString[num%base]

num = 10
print(toStr(num, 2))